//package vip.xiaonuo.gateway.core.filter;
//
//import org.springframework.cloud.gateway.filter.GatewayFilter;
//import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
//import org.springframework.stereotype.Component;
//import org.springframework.web.reactive.function.server.ServerResponse;
//import reactor.core.publisher.Mono;
//
//@Component
//public class MyFilter extends AbstractGatewayFilterFactory<MyFilter.Config> {
//
//    public MyFilter() {
//        super(Config.class);
//    }
//
//    public static class Config {
//        // 定义配置参数
//    }
//
//    @Override
//    public GatewayFilter apply(Config config) {
//        return (exchange, chain) -> {
//            Mono<ServerResponse> response = chain.filter(exchange)
//                    .doOnEach(signal -> System.out.println("Response from Gateway: " + exchange.getRequest().getURI()))
//                    .then(ServerResponse.ok().bodyValue("经过网关处理的响应"));
//
//            return response.then();
//        };
//    }
//}
